package com.hospital.hospitalsystem.modules.admin.service;


import com.hospital.hospitalsystem.modules.admin.dao.entity.MedicalIntroduceEntity;
import com.hospital.hospitalsystem.modules.admin.dao.mapper.MedicalIntroduceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2023/4/1
 */
@Component
public class MedicalIntroduceService {
    @Autowired
    private MedicalIntroduceMapper medicalIntroduceMapper;

    public void insertSelective(MedicalIntroduceEntity medicalIntroduceEntity) {
        medicalIntroduceMapper.insertSelective(medicalIntroduceEntity);
    }

    public List<MedicalIntroduceEntity> selectByExample(Example example) {
        return medicalIntroduceMapper.selectByExample(example);
    }

    public void deleteByExample(Example example) {
        medicalIntroduceMapper.deleteByExample(example);
    }

    public void updateByExampleSelective(MedicalIntroduceEntity medicalIntroduceEntity,Example example) {
        medicalIntroduceMapper.updateByExampleSelective(medicalIntroduceEntity,example);
    }
}
